package com.yu.demo.commons.enums;

/**
 * @Description: 错误返回
 * @Author: WengYu
 */
public enum ErrorResultEnum implements ResultInterface {

    SERVER_ERROR(50000,"server error");

    private Integer code;

    private String message;

    ErrorResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
